// 
//  KNDataCheck.h
//

#import <Foundation/Foundation.h>

/**
 * 数据校验
 */
@interface KNDataCheck : NSObject


+ (BOOL)isValidString:(id)input;
+ (BOOL)isValidDictionary:(id)input;
+ (BOOL)isValidArray:(id)input;
+ (BOOL)isValidateEmail:(NSString *)email;
+ (BOOL)isValidatePhone:(NSString *)phone;
+ (BOOL)isInteger:(NSString *)input;

+ (NSString *)wipeNullForDic:(NSDictionary *)aDic key:(NSString *)aKey;

/**
 * 判断dic 是否是字典,是否包含key
 */
+ (BOOL)isHasKeyDic:(id)tryDic key:(NSString *)tryKey;
@end
